package com.tjmc.tiomsresource.service.impl;

import com.tjmc.tiomscore.dao.TranPtnHwPswMapper;
import com.tjmc.tiomscore.model.TranPtnHwPsw;
import com.tjmc.tiomsresource.parser.CMPswParser;
import com.tjmc.tiomsresource.service.CMPswService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.List;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-05-20 15:41
 */
@Service("cmPswService")
public class CMPswServiceImpl extends CMSuperServiceImpl<TranPtnHwPsw> implements CMPswService {

    @Autowired
    private CMPswParser cmPswParser;
    @Autowired
    private TranPtnHwPswMapper tranPtnHwPswMapper;

    @Override
    public CMPswParser getParser() {
        return cmPswParser;
    }

    @Override
    public TranPtnHwPswMapper getMapper() {
        return tranPtnHwPswMapper;
    }

    @Override
    public boolean saveTranPtnHwDataToDB(List<File> xmlFiles) {
        return this.saveTranPtnHwDataToDB(xmlFiles, "PSW");
    }
}
